package subject

import (
	"github.com/gin-gonic/gin"
	apis "vrcm/src/vrcm/app/admin/apis/subject"
	"vrcm/src/vrcm/app/admin/router"
)

func init() {
	router.NoCheckRole = append(router.NoCheckRole, registerAnswerRecordRouter)
}

// registerAnswerRecordRouter
func registerAnswerRecordRouter(v1 *gin.RouterGroup) {
	api := apis.AnswerRecord{}
	r := v1.Group("/answer-record")
	{
		r.GET("", api.GetPage)
		r.GET("/:id", api.Get)
		r.POST("/get-by-account", api.GetByAccount)
		r.POST("/insert", api.Insert)
		r.PUT("/:id", api.Update)
		r.DELETE("", api.Delete)
	}
}
